
def A(a):

    b = list(zip(*a))
    c = [list(row) for row in b]
    return c


a = [[1, 2, 3], [4, 5, 6]]
b = A(a)
print("原始矩阵:", a)
print("转置后的矩阵:", b)